package com.huiying.entity.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author: lsh
 * @Date: 2024/10/24/22:06
 * @Description: 评论
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Comment implements Serializable {
    private static final long serialVersionUID = 1L;
    //评论id
    private Long id;
    //评论内容
    private String content;
    //评论图片url
    private String imageUrl;
    //评论需求单或者作品的id
    private Long contentId;
    //回复类型，0为回复需求单，1为回复作品
    private Integer contentType;
    //用户id
    private Long userId;
    //自指id，指向父评论
    private Long parentId;
    //回复的用户
    private Long repliedUserId;
    //创建时间
    private LocalDateTime createdTime;
}
